//配置路由规则
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      component: () => import("../views/users/LoginView.vue")
    },
    {
      path: '/register',
      component: () => import("../views/users/RegisterView.vue")
    }
  ]
})

export default router